package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;
import com.qifan.alb2b.dao.RepastInfoDao;
import com.qifan.alb2b.domain.RepastInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

/**
 * 餐饮业务对象
 * 
 * @author hc24
 * 
 */
@Service
public class RepastInfoService {
	private RepastInfoDao repastInfoDao;

	public void setRepastInfoDao(RepastInfoDao repastInfoDao) {
		this.repastInfoDao = repastInfoDao;
	}

	public Page query(DataGridModel dgm, RepastInfoDomain rid) {
		return repastInfoDao.query(dgm, rid);
	}

	public RepastInfoDomain getRepastById(String rid) {
		return repastInfoDao.getRepastById(rid);
	}

	public void add(RepastInfoDomain repastInfoDomain) {
		repastInfoDao.add(repastInfoDomain);
	}

	public void update(RepastInfoDomain repastInfoDomain) {
		repastInfoDao.update(repastInfoDomain);
	}

	public void delete(String[] ids) {
		repastInfoDao.delete(ids);
	}
}
